using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Mvc;
using HengTong.Model.Db.Hr.Attendance;

namespace HengTong.Areas.Hr.Controllers
{
    [AuthorizeJwtWithCookie]
    public partial class SysAttendanceShiftGroupController : BaseApiController
    {
        [ActionDescription("获取班次选项")]
        [HttpGet("GetShiftItems")]  
        public IActionResult GetShiftItems()
        {
            var data = new Dictionary<ShiftGroupType, List<string>>
            {
                { ShiftGroupType.三班倒, ["A", "B", "休"] },
                { ShiftGroupType.两班倒, ["班", "休"] },
                { ShiftGroupType.上一休二, ["班", "休1", "休2"] },
                { ShiftGroupType.行政班, ["星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期天"] }
            };
            return Ok(data);
        }
    }
}
